package org.lds.hotkey.console.business.currhotkey.model.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.lds.hotkey.common.model.pojo.request.BaseUpdateRequest;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 更新 - 请求
 *
 * @author lidongsheng
 * @since 2024-07-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Accessors(chain = true)
public class CurrHotKeyBaseUpdateRequest extends BaseUpdateRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
    * 主键
    */
    @NotNull(message = "id不能为空")
    private Long id;


    /**
    * 缓存时间（秒）
    */
    private Integer duration;

    private LocalDateTime createTime;

}
